package com.talkweb.platform.commonapi.entity.db;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "bpm_formlist")
@ApiModel(value = "BpmFormlist", description = "表单定义信息表")
public class BpmFormlist  implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
	private String orUnId;
	
	@Column(name = "WF_Appid")
	@ApiModelProperty(value = "所属应用ID")
	private String appId;
	
	@Column(name = "folderid")
	@ApiModelProperty(value = "所属分类ID")
	private String folderid;
	
	@Column(name = "formnumber")
	@ApiModelProperty(value = "表单编号")
	private String formnumber;
	
	@Column(name = "formname")
	@ApiModelProperty(value = "表单名称")
	private String formname;
	
	@Column(name = "title")
	@ApiModelProperty(value = "表单标题")
	private String title;
	
	@Column(name = "formbody")
	@ApiModelProperty(value = "表单主体html")
	private String formbody;
	
	@Column(name = "formtype")
	@ApiModelProperty(value = "表单类型1一般表单2流程主表单3流程子表单 ", allowableValues = "1,2,3")
	private String formtype;
	
	@Column(name = "jsheader")
	@ApiModelProperty(value = "js内容")
	private String jsheader;
	
	@Column(name = "headerconfigid")
	@ApiModelProperty(value = "Header应用配置ID")
	private String headerconfigid;
	
	@Column(name = "bodytag")
	@ApiModelProperty(value = "Body标签内容")
	private String bodytag;
	
	@Column(name = "htmlheader")
	@ApiModelProperty(value = "Header引用资源")
	private String htmlheader;
	
	@Column(name = "eventrulenum")
	@ApiModelProperty(value = "绑定事件规则")
	private String eventrulenum;
	
	@Column(name = "fieldconfig")
	@ApiModelProperty(value = "字段属性配置")
	private String fieldconfig;
	
	@Column(name = "toolbarconfig")
	@ApiModelProperty(value = "按钮配置")
	private String toolbarconfig;
	
	@Column(name = "roles")
	@ApiModelProperty(value = "角色")
	private String roles;
	
	@Column(name = "designer")
	@ApiModelProperty(value = "应用ID")
	private String designer;
	
	@Column(name = "noencode")
	@ApiModelProperty(value = "存盘时不对数据进行编码")
	private String noencode;
	
	@Column(name = "datasourceid")
	@ApiModelProperty(value = "数据源")
	private String datasourceid;
	
	@Column(name = "sqltablename")
	@ApiModelProperty(value = "数据存储表")
	private String sqltablename;
	
	@Column(name = "showmask")
	@ApiModelProperty(value = "打开时使用Mask效果")
	private String showmask;
	
	@Column(name = "isrollback")
	@ApiModelProperty(value = "事务回滚")
	private String isrollback;
	
	@Column(name = "savegourl")
	@ApiModelProperty(value = "保存成功后跳转至")
	private String savegourl;
	
	@Column(name = "cacheflag")
	@ApiModelProperty(value = "")
	private String cacheflag;
	
	@Column(name = "status")
	@ApiModelProperty(value = "状态1启用")
	private String status;
	
	@Column(name = "wf_noupdate")
	@ApiModelProperty(value = "禁止升级本设计")
	private String noupdate;
	
	@Column(name = "wf_version")
	@ApiModelProperty(value = "版本")
	private String version;
	
	@Column(name = "wf_doccreated")
	@ApiModelProperty(value = "创建时间")
	private String doccreated;
	
	@Column(name = "wf_addname")
	@ApiModelProperty(value = "创建用户ID")
	private String addname;
	
	@Column(name = "wf_addname_cn")
	@ApiModelProperty(value = "创建用户名")
	private String addnameCn;
	
	@Column(name = "wf_lastmodified")
	@ApiModelProperty(value = "最后更新时间")
	private String lastmodified;
	
	@Column(name = "xmldata")
	@ApiModelProperty(value = "xmldata")
	private String xmldata;
	
	@Column(name = "isVueForm")
	@ApiModelProperty(value = "是否vue表单0否1是", allowableValues = "0,1")
	private String isVueForm;
}
